<?php
/**
 * 登录灰
 */
class LoginController extends Controller
{
	
	public function index()
	{

		$users = (new UserModel)->get_ten_hot();

		var_dump($users);

		exit;
		// $db = new Db('user');

		// $db->where("uid=7");

		// $data = $db->select();

		$name = ['name'=>'小明','age'=>20];

		// 分配变量
		$this->assgin('name',$name);
		$this->assgin('xbs','学并思');
		$this->assgin('url','http:://www.baidu.com');

		$this->display('');
	}
	public function check()
	{
		echo "登录检测数据";
		$this->display();
	}

	public function show($value='')
	{
		echo "登录的show";

		$arr = ['name'=>'xbs','age'=>20];

		extract($arr);

		var_dump($name);
	}
}